package com.example.springboot_zc.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot_zc.mapper.dydataMapper;
import com.example.springboot_zc.pojo.DyData;
import com.example.springboot_zc.service.dydataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
@Service
public class dydataServiceImpl extends ServiceImpl<dydataMapper, DyData> implements dydataService {
    @Autowired
    dydataMapper dydataMapper;

    public Integer deleteByStu(String stuNum){return dydataMapper.deleteByStu(stuNum);}

    public List<DyData> selectByStu(String stuNum){return dydataMapper.selectByStu(stuNum);}
}
